package io.github.fb513.transport.command;

import com.fasterxml.jackson.databind.JsonNode;
import io.github.fb513.common.model.MessageInfo;
import io.netty.channel.ChannelHandlerContext;

public abstract class AbstractCommand {

    protected final CommandChain commandChain;

    public AbstractCommand(CommandChain commandChain) {
        this.commandChain = commandChain;
    }

    abstract boolean supportsCommand(int command);

    abstract void executeCommand(ChannelHandlerContext ctx, MessageInfo<JsonNode> msg);
}
